package com.candy.oop;

public class Student {
    //属性
    public int stuId;
    public String stuName;
    public boolean stuSex;

    protected String stuTest;
    int stuTest01;
    private int stuTest02;

    //构造函数
    public Student(){

    }

    public Student(int stuId) {
        this.stuId = stuId;
    }

    public Student(int stuId, String stuName, boolean stuSex) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuSex = stuSex;
    }

    //方法
    public void studing(){
        System.out.println("I am studing......");

    }

    public void studing(String stuName){
        String stuObject="";
        this.stuName=stuName;
        System.out.println(this.stuName+" is studing.......");
    }
}
